﻿namespace Snipps.Services
{
    using System.Windows;

    public class WindowOperationsService : IWindowOperationsService
    {
        public bool IsVisible
        {
            get
            {
                return Application.Current.MainWindow.IsVisible;
            }
        }

        public void ShowWindow()
        {
            Application.Current.MainWindow.Show();
            Application.Current.MainWindow.Activate();
        }

        public void HideWindow()
        {
            Application.Current.MainWindow.Hide();
        }

        public void CloseWindow()
        {
            Application.Current.MainWindow.Close();
        }
    }
}